/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package laboration2.gui;

import javax.swing.ImageIcon;
import javax.swing.ListModel;
import javax.swing.event.ListDataListener;
import se.chalmers.ait.dat215.lab2.Recipe;

/**
 *
 * @author arildm
 */
public class RecipeSampleModel implements ListModel {
    
    ImageIcon icon = new ImageIcon("testprojektnummerfemtioelva/resources/recipe1.jpg");
    
    Recipe[] list = {
        new Recipe("Korv", 2, "Jete svår", 10, "Svenskt", 15, "Kött",
            "Koka korven. Klar!", null, null),
        new Recipe("Pytt i panna", 1, "Lätt", 20, "Svenskt", 10, "Kött",
            "Stek i smör eller olja.", icon, null)
    };
    
    public int getSize() { return list.length; }
    public Object getElementAt(int index) { return list[index]; }
    
    public void addListDataListener(ListDataListener l) {}
    public void removeListDataListener(ListDataListener l) {}
    
}
